﻿CREATE FUNCTION [dbo].[fs_Principals]()
RETURNS TABLE 
AS RETURN (
SELECT principal_id
	,GroupName
  ,1 IsGroup
  ,dbo.UserNameSpace() NameSpace
  ,0 IsNameSpace
	,GroupName Name
FROM UserGroups()
)
